<!DOCTYPE html>
<html>
<head>
    <title>文件上传</title>
</head>
<body>
    <div class="container">
        <h5>
            <ul>
                {{range .Files}}
                <li>
                    <a href="/attachment/{{.}}">{{.}}</a>
                </li>
                {{end}}
            </ul>
        </h5>
        <form action="/attachment" method="post" enctype="multipart/form-data">
            <div class="form-group">
                <label>文件上传：</label>
                <input type="file" name="attachment" class="form-control">
            </div>
            <button type="submit">提交</button>
    </div>
    </form>
</body>
</html>